<?php
class Crop extends CWidget
{
	public function init()
	{
		$dir = dirname(__FILE__);
		$assets_path = Yii::app()->getAssetManager()->publish($dir);
		$ClientScript = Yii::app()->getClientScript();
		$ClientScript->registerScriptFile("{$assets_path}/js/jquery.Jcrop.js");
		$ClientScript->registerScriptFile("{$assets_path}/js/jquery.color.js");
		$ClientScript->registerCssFile("{$assets_path}/css/jquery.Jcrop.css");  
		$ClientScript->registerCssFile("{$assets_path}/css/demos.css");
	}
	public function run()
	{
		
	}
}